#include <iostream>
#include "stack.hpp"
using namespace std;

int main()
{
    my_stack::stack<int> st;
    st.push(1);
    st.push(2);
    st.push(3);
    st.push(4);
    cout << st.top() << endl;
    cout << "------------" << endl;
    while(!st.empty())
    {
        cout << st.top() << " ";
        st.pop();
    }
    cout << endl;
    return 0;
}